package com.nerve.secondhandcar.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.ko.core.domain.support.BaseEntity;

/**
 * @project: secondHandCarPlatform
 * @file: ResaleApply.java
 * @package: com.nerve.secondhandcar.domain
 * @description:
 *	转卖申请
 * @author: 集成显卡	1053214511@qq.com
				IBM GDC, zengxm@cn.ibm.com
 * @date&time: 2014-10-23
 * @change log:
 */
@SuppressWarnings("serial")
@Entity
@Table(name="resale_apply")
public class ResaleApply extends BaseEntity{
	public static final int RESALE = 0;
	public static final int ASSESSMENT = 1;	
	
	private int category;					//分类，0=卖车，1=估价，方便以后扩展
	private Brand brand;					//品牌
	private String regYear;					//上牌年份
	private String regMonth;				//上牌月份
	private String title;					//具体车型
	
	private String belong;					//归属地
	private String price;					//期望价格
	private String mileage;					//里程
	
	private String sellerName;				//卖家名称
	private String sellerTelephone;			//卖家电话
	private Date postDate;					//提交时间
	private Date dealDate;					//处理时间
	
	public int getCategory() {
		return category;
	}
	public void setCategory(int category) {
		this.category = category;
	}
	public String getMileage() {
		return mileage;
	}
	public void setMileage(String mileage) {
		this.mileage = mileage;
	}
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "brand_id", nullable = true)
	public Brand getBrand() {
		return brand;
	}
	public void setBrand(Brand brand) {
		this.brand = brand;
	}
	public String getRegYear() {
		return regYear;
	}
	public void setRegYear(String regYear) {
		this.regYear = regYear;
	}
	public String getRegMonth() {
		return regMonth;
	}
	public void setRegMonth(String regMonth) {
		this.regMonth = regMonth;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getBelong() {
		return belong;
	}
	public void setBelong(String belong) {
		this.belong = belong;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getSellerName() {
		return sellerName;
	}
	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}
	public String getSellerTelephone() {
		return sellerTelephone;
	}
	public void setSellerTelephone(String sellerTelephone) {
		this.sellerTelephone = sellerTelephone;
	}
	public Date getPostDate() {
		return postDate;
	}
	public void setPostDate(Date postDate) {
		this.postDate = postDate;
	}
	public Date getDealDate() {
		return dealDate;
	}
	public void setDealDate(Date dealDate) {
		this.dealDate = dealDate;
	}
}